package com.goodfather.textbook.youdao.pad.util;

import android.content.Context;

import java.io.File;

/**
 * @Description:
 * @Author: zhou
 * @CreateDate: 2020/8/25
 */
public class BookUtil {

    public static boolean hasMP3FileInFiles(Context context, String pathToFile) {
        boolean res = false;
        File parentFile = StorageUtils.getIndividualCacheDirectory
                (context);
        File file = new File(parentFile,pathToFile);
        if (file.exists() && file.length() > 0) {
            res = true;
        }
        return res;
    }
}
